Skip to content

Upgrade libzstd1 and zstd in the images (fixes the image scan) - #440

Closed
amar-python wants to merge 3 commits into
mainfrom
claude/fix-libzstd-image-scan
Closed

amar-python wants to merge 3 commits into
mainfrom
claude/fix-libzstd-image-scan

Conversation

@amar-python

Copy link
Copy Markdown
Owner

Why

The container image scan fails on main and on every pull request that builds the images. Trivy reports a HIGH finding in Debian 13.7: libzstd1 1.5.7+dfsg-1 (CVE-2026-124851), fixed in 1.5.7+dfsg-1+deb13u1. The database image also has zstd. The python:3.12-slim base is pinned by digest and predates the fix.

What

Takes the Debian security update the way the images already do for zlib1g: named packages only, no blanket upgrade, and the line does nothing once the base image carries the fix.

  • container/api.Dockerfile and container/streamlit.Dockerfile: libzstd1.
  • container/db.Dockerfile: libzstd1 and zstd.
  • tests/unit/test_container_image_hardening.py: the new packages, and the Streamlit image is now covered.

Verification

The image-hardening, scan-workflow and container-bundle unit tests pass. I did not build the images or run Trivy here (no Docker), so the Container bundle scan jobs on this PR are the real check. The scan output named only te-api and te-db; I added libzstd1 to the Streamlit image because it uses the same base.

Not fixed here: Dependabot's npm pull requests (#420, #423, #424, #425) fail earlier, at npm ci ("Missing: lru-cache@11.5.3 from lock file"), which is a separate problem.


Generated by Claude Code

The image scan fails on main: Debian 13.7's libzstd1 1.5.7+dfsg-1 has a HIGH
finding fixed in 1.5.7+dfsg-1+deb13u1. Take the security update the same way
as zlib1g (named packages only) in the API, Streamlit and database images.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011T6WqhKR6dS4KmR9nHSMJr

Copy link
Copy Markdown
Owner Author

Closing without merging. This is superseded by #455, which is merged to main (871640c, then 3721ec7 on the branch). #455 upgrades libzstd1 in the API and database images.

This branch is 18 commits behind main and would roll back the base-image digests that #455 and #456 moved (its database image is on postgres digest 3950ad…, main is on ce8115…).

The one gap left is the Streamlit image, which upgrades zlib1g but not libzstd1. That will be a small new PR from main.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants